package aad.storyboard.model;

import aad.storyboard.controller.AudioPlayer;

public class AnimationStateStopped implements AnimationState{

	private static AnimationStateStopped instance = new AnimationStateStopped();
	
	private AnimationStateStopped(){
		
	}
	
	public static AnimationStateStopped getInstance(){
		return instance;
	}

	@Override
	public void stop(Animation a) {
		//nothing happens, already stopped
	}

	@Override
	public void pause(Animation a) {
		//nothing happens, already stopped
	}

	@Override
	public void start(Animation a) {
		a.setActive(true);
		a.setStarted(true);
		a.setState(AnimationStateStarted.getInstance());
		a.setTime(AudioPlayer.getInstance().getCurrentPosition());
	}

}
